import mapboxgl from "mapbox-gl";

export const GET_MAPBOX_MAP = () => {
    mapboxgl.accessToken = 'pk.eyJ1IjoiemhhbmdmZWkzMTcwIiwiYSI6ImNtNnlnMmZpZTBnenYydm9pOHQ0MzF6Y2oifQ.7aFdSnD7Ilm3P7PhyTMWtw';
    return new mapboxgl.Map({
        container: 'map', // 地图容器的ID
        style: 'mapbox://styles/mapbox/streets-v11?language=zh-Hans', // 地图样式
        center: [118.75163, 32.046901], // 初始中心点坐标
        zoom: 15, // 初始缩放级别
        // pitch: true
    });
}
